package com.hc.demo.mapper;

import com.hc.demo.domain.Cidetailedreport;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CidetailedreportMapper {
    int deleteByPrimaryKey(Integer cidrId);

    int insert(Cidetailedreport record);

    int insertSelective(Cidetailedreport record);

    Cidetailedreport selectByPrimaryKey(Integer cidrId);

    int updateByPrimaryKeySelective(Cidetailedreport record);

    int updateByPrimaryKey(Cidetailedreport record);

    @Select("select  cidrId, name, unit, minrange, maxrange, normalValue, normalValueString, type, value, \n" +
            "    isError, ciId, orderId from cidetailedreport where ciId=#{ciId} and orderId=#{orderId}")
    List<Cidetailedreport> selectByCheckitemIdAndOrderId(@Param("ciId") Integer ciId, @Param("orderId") Integer orderId);
}